package com.longjianghuasheng.logistics.business.mine.fragment

import android.os.Bundle
import com.longjianghuasheng.logistics.BR
import com.longjianghuasheng.logistics.R
import com.longjianghuasheng.logistics.base.BaseTitleFragment
import com.longjianghuasheng.logistics.business.mine.viewmodel.ChangeViewModel
import com.longjianghuasheng.logistics.databinding.FragmentModifyPhoneNumberBinding
import com.longjianghuasheng.logistics.ext.observer
import me.hgj.jetpackmvvm.ext.nav

class ModifyPhoneNumberFragment :
    BaseTitleFragment<ChangeViewModel, FragmentModifyPhoneNumberBinding>() {


    override fun initViewModelId(): Int = BR.changeViewModel

    override fun layoutId(): Int = R.layout.fragment_modify_phone_number

    override fun initView(savedInstanceState: Bundle?) {
        super.initView(savedInstanceState)
        initTitleBar("修改手机号")
    }

    override fun createObserver() {
        super.createObserver()
        mViewModel.notify.observer(this) {

            nav().popBackStack(R.id.main2Fragment, false)
        }
    }

    override fun initData() {
        super.initData()
    }

    override fun lazyLoadData() {
        super.lazyLoadData()
    }
}